package rmi.agencia;

import java.rmi.Naming;
import rmi.*;
public class NameService {

	public NameService() {
		try {
			RmiInterface m = new Agencia();
			Naming.rebind("rmi://localhost/RmiService", m);
			
		}
		catch( Exception e ) {
			System.out.println( "Trouble: " + e );
		}
	}

	public static void main(String[] args) {
		new NameService();
	}
}
